package com.jy.books.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 图书信息对象 books
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class Books extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书ID，唯一标识一本图书 */
    private Long bookId;

    /** 图书标题 */
    @Excel(name = "图书标题")
    private String title;

    /** 图书作者 */
    @Excel(name = "图书作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publicationDate;

    /** 国际标准书号 */
    @Excel(name = "国际标准书号")
    private String isbn;

    /** 图书类别 */
    @Excel(name = "图书类别")
    private Long categoryId;

    /** 总藏书量 */
    @Excel(name = "总藏书量")
    private Long totalCopies;

    /** 可用藏书量 */
    @Excel(name = "可用藏书量")
    private Long availableCopies;

    /** 书架位置 */
    @Excel(name = "书架位置")
    private String shelfLocation;

    /** 图书简介 */
    @Excel(name = "图书简介")
    private String summary;

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublicationDate(Date publicationDate) 
    {
        this.publicationDate = publicationDate;
    }

    public Date getPublicationDate() 
    {
        return publicationDate;
    }

    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setTotalCopies(Long totalCopies) 
    {
        this.totalCopies = totalCopies;
    }

    public Long getTotalCopies() 
    {
        return totalCopies;
    }

    public void setAvailableCopies(Long availableCopies) 
    {
        this.availableCopies = availableCopies;
    }

    public Long getAvailableCopies() 
    {
        return availableCopies;
    }

    public void setShelfLocation(String shelfLocation) 
    {
        this.shelfLocation = shelfLocation;
    }

    public String getShelfLocation() 
    {
        return shelfLocation;
    }

    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("publisher", getPublisher())
            .append("publicationDate", getPublicationDate())
            .append("isbn", getIsbn())
            .append("categoryId", getCategoryId())
            .append("totalCopies", getTotalCopies())
            .append("availableCopies", getAvailableCopies())
            .append("shelfLocation", getShelfLocation())
            .append("summary", getSummary())
            .toString();
    }
}
